package org.raymond.icloud.common.core.bean;

import com.baomidou.mybatisplus.core.metadata.OrderItem;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class PageBean<T> implements Serializable {
    @NotNull
    private long current;
    @NotNull
    private long pageSize;

    private List<T> data;
    private long total;
    private List<OrderItem> orders;
}
